<script lang="ts" setup>
import { ref } from 'vue';

const popupRef = ref<UniHelper.UniPopupInstance>()
const openDialog = () => {
  popupRef.value?.open?.()
}
</script>

<template>
  <button class="button" type="primary" @click="openDialog">
    打开弹窗
  </button>
  <uni-popup ref="popupRef" type="bottom">
    <view class="popup-content">
     
    </view>
  </uni-popup>
</template>

<style lang="scss" scoped></style>